var http = require("../utils/http.js");
/** 获取订单列表数据 */
export function fetchOrders(params) {
  return http.request({
    url: "api/app/order/list/",
    method: "GET",
    data: params
  });
}

/** 获取商品列表 */
export function saveOrder(param) {
  return http.request({
    url: "api/app/order/commit/",
    method: "POST",
    data: param
  });
}
/** 获取商品列表 */
export function payOrder(param) {
  return http.request({
    url: "api/app/order/payment/",
    method: "POST",
    data: param
  });
}

/** 确认上车 */
export function confimOrder(param) {
  return http.request({
    url: "api/app/order/confim/",
    method: "POST",
    data: param
  });
}

/** 取消出行 */
export function refundOrder(param) {
  return http.request({
    url: "api/app/order/refund/",
    method: "POST",
    data: param
  });
}

/** 退款申请 */
export function serviceOrder(param) {
  return http.request({
    url: "api/app/order/service/",
    method: "POST",
    data: param
  });
}
/** 取消退款 */
export function revokeOrder(param) {
  return http.request({
    url: "api/app/order/revok/",
    method: "POST",
    data: param
  });
}